"""提交订单"""
from selenium.webdriver.common.by import By

from base.base_page import BasePage


class SubmitOrdPage(BasePage):
    """
    提交订单
    """
    def __init__(self):
        super().__init__(driver_type='web')
        # 提交订单
        self.submit_order = By.ID, 'submit_order'

    def submit_order_method(self):
        """
        提交订单页面
        """
        self.click_element(self.find_element_method(self.submit_order))
